<?php
Zend_Loader::loadClass("BaseControllerAction");

class PreprocessorController extends BaseControllerAction
{
	protected $_navMenu = array();

	public function init()
	{
		parent::init();
		// All rendering is done via Pages and layout placeholders other than "content"
		$this->_helper->viewRenderer->setNoRender(true);
		$ajaxContext = $this->_helper->getHelper('AjaxContext');
		$ajaxContext->addActionContext('materiali', 'json')
					->setAutoDisableLayout(true)
					->setAutoJsonSerialization(false)
					->initContext();
	}

	/**
	* This action proxies to the preprocessor Page
	*/
	public function indexAction()
	{
		Zend_Loader::loadClass("Application_Page_Preprocessor");
		$page = new Application_Page_Preprocessor();
		$page->run();
	}

	public function costruzioniAction()
	{
		Zend_Loader::loadClass("Application_Page_Costruzioni");
		$page = new Application_Page_Costruzioni();
		$page->run();
	}

	public function materialiAction()
	{
		Zend_Loader::loadClass("Application_Page_Materiali");
		$page = new Application_Page_Materiali();
		$page->run();
	}

	public function vetriAction()
	{
		Zend_Loader::loadClass("Application_Page_Vetri");
		$page = new Application_Page_Vetri();
		$page->run();
	}

	public function gasAction()
	{
		Zend_Loader::loadClass("Application_Page_Gas");
		$page = new Application_Page_Gas();
		$page->run();
	}

	public function vetricompostiAction()
	{
		Zend_Loader::loadClass("Application_Page_VetriComposti");
		$page = new Application_Page_VetriComposti();
		$page->run();
	}
}

